home *** CD-ROM | disk | FTP | other *** search
/ Candy Factory Pro / Candy Factory Pro.iso / DEMOVERSIONEN / ElasticDreamsDemoGer / Install_ElasticDreams < prev    next >
Text File  |  1998-03-13  |  14KB  |  721 lines

  1. ; $VER: ElasticDreams_Install 1.000 (04.02.98)
  2. ; Script to install ElasticDreams Version 1.0
  3.  
  4. (complete 0)
  5. (user 1)
  6.  
  7. ;=============================================================================
  8. ; English strings
  9.  
  10. (set default_lang 4)
  11.  
  12. (set #bad-kick "ElasticDreams needs Amiga-OS 3.0 or higher")
  13.  
  14. (set SelectDir1Msg
  15.      (cat "Please select a directory\nto install ElasticDreams in"
  16.      )
  17. )
  18.  
  19. (Set ProgMsg
  20.      (cat "Which parts should i install?"
  21.      )
  22. )
  23.  
  24.  (set Choice1Msg "ElasticDreams Mainprogram (8 MB)")
  25.  (set Choice2Msg "ElasticDreams Tools (1 MB)")
  26.  (set Choice3Msg "ElasticDreams Instruction (200 KB)")
  27.  
  28.  (set FPU1Msg "None")
  29.  (set FPU2Msg "Yes, this machine is with FPU")
  30.  
  31.  (set CPU1Msg "MC68000")
  32.  (set CPU2Msg "MC68030")
  33.  (set CPU3Msg "MC68040")
  34.  (set CPU4Msg "MC68060")
  35.  (set CPU5Msg "PPC603/604")
  36.  
  37.  (set CPUMsg "What CPU does the machine have that you are installing ElasticDreams Pro?")
  38.  
  39.  (set UpDategraf "Checking and updating graffiti.library, if needed...")
  40.  
  41.  (set InstallElasticDreamsProg "Installing ElasticDreams professional main program...")
  42.  (set InstallLoader "Installing loader...")
  43.  (set InstallSaver "Installing saver...")
  44.  (set InstallOperator "Installing Operator files...")
  45.  (set InstallViewer "Installing viewers...")
  46.  (set InstallGuide "Installing Guide-File...")
  47.  (set InstallTools "Installing Tools...")
  48.  (set InstallBG "Installing Background...")
  49.  (set InstallImages "Installing Images...")
  50.  
  51.  (set AssignAdd1
  52.      (cat "\nAdding the ElasticDreams assignment to s:user-startup - it currently looks like this:\n\n%s\n\n"
  53.           (cat "assign ElasticDreams: " ElasticDreamsDir)
  54.      )
  55. )
  56.  
  57. ;=============================================================================
  58. ; German strings
  59.  
  60. (if   (= @language "deutsch")
  61. (
  62.  (set default_lang 2)
  63.  
  64.  (set #bad-kick "ElasticDreams benötigt mindestens Amiga-OS 3.0 oder höher")
  65.  
  66.  (set SelectDir1Msg
  67.       (cat "Wählen Sie ein Verzeichnis, wo Sie ElasticDreams "
  68.            "installieren möchten. Ein Verzeichnis mit den "
  69.            "Namen ElasticDreams wird automatisch angelegt!"
  70.       )
  71.  )
  72.  
  73.  (Set ProgMsg
  74.       (cat "\nWelche Dateien sollen installiert werden?\n"
  75.       )
  76.  )
  77.  
  78.  (set Choice1Msg "ElasticDreams Hauptprogramm (ca. 8 MB)")
  79.  (set Choice2Msg "ElasticDreams Tools (ca. 1 MB)")
  80.  (set Choice3Msg "ElasticDreams Anleitung (ca. 200 KB)")
  81.  
  82.  (set FPU1Msg "Keine vorhanden")
  83.  (set FPU2Msg "ja, FPU vorhanden")
  84.  
  85.  (set CPU1Msg "MC68000")
  86.  (set CPU2Msg "MC68030")
  87.  (set CPU3Msg "MC68040")
  88.  (set CPU4Msg "MC68060")
  89.  (set CPU5Msg "PPC603/604")
  90.  
  91.  (set CPUMsg "Welchen Prozessor besitzt der Computer, auf dem Sie ElasticDreams installieren möchten?")
  92.  
  93.  (set UpDategraf "Prüfe und Erneuere die graffiti.library, wenn nötig...")
  94.  
  95.  (set InstallElasticDreamsProg "Installiere ElasticDreams Version 2.0 Hauptprogramm...")
  96.  (set InstallLoader "Installiere Lademodule...")
  97.  (set InstallSaver "Installiere Speichermodule...")
  98.  (set InstallOperator "Installiere Bildbearbeitungsmodule...")
  99.  (set InstallViewer "Installiere Anzeigemodule...")
  100.  (set InstallGuide "Installiere Guide-Datei...")
  101.  (set InstallTools "Installiere Werkzeuge...")
  102.  (set InstallBG "Installiere Hintergrund...")
  103.  (set InstallImages "Installing Bilder...")
  104.  
  105.  (set AssignAdd1
  106.       (cat "\nFüge ElasticDreams Zuweisung an s:user-startup - Es würde wie folgt Aussehen:\n\n%s\n\n"
  107.            (cat "assign ElasticDreams: " ElasticDreamsDir)
  108.       )
  109.  )
  110. )
  111. )
  112.  
  113. (if (> (* 39 65536) (getversion "exec.library" (resident)))
  114.         (abort #bak-kick)
  115. )
  116.  
  117.  
  118. (welcome)
  119. (set old_level @user-level)
  120.  
  121. (user 2)
  122.  
  123. (if ( < (exists "ElasticDreams:" (noreq)) 2)
  124.   (
  125.    (set target (askdir
  126.           (prompt SelectDir1Msg)
  127.           (help #which-dir-help)
  128.           (default "SYS:")
  129.    ))
  130.    (set ElasticDreamsDir        (tackon target "ElasticDreams"))
  131.   )
  132. )
  133.  
  134. (if (exists "ElasticDreams:" (noreq))
  135.   (
  136.    (set target "ElasticDreams:")
  137.    (set ElasticDreamsDir "ElasticDreams:")
  138.   )
  139. )
  140.  
  141. (user old_level)
  142.  
  143. (set WAS
  144.       (askoptions
  145.       (prompt ProgMsg)
  146.       (help   @askchoice-help)
  147.       (choices Choice1Msg Choice2Msg Choice3Msg)
  148.       (default 7)
  149.       )
  150. )
  151.  
  152. (set MainDirPPC        (tackon ElasticDreamsDir "MainPPC"))
  153. (set LoaderDir        (tackon ElasticDreamsDir "Loader"))
  154. (set LoaderDirPPC    (tackon ElasticDreamsDir "LoaderPPC"))
  155. (set OperatorDir    (tackon ElasticDreamsDir "Operator"))
  156. (set OperatorDirPPC    (tackon ElasticDreamsDir "OperatorPPC"))
  157. (set ViewerDir        (tackon ElasticDreamsDir "Viewer"))
  158. (set SaverDir        (tackon ElasticDreamsDir "Saver"))
  159. (set ToolsDir        (tackon ElasticDreamsDir "Tools"))
  160. (set DocDir        (tackon ElasticDreamsDir "Docs"))
  161. (set ImagesDir        (tackon ElasticDreamsDir "Images"))
  162. (set BackgroundDir    (tackon ElasticDreamsDir "Background"))
  163. (set BackgroundSmallDir (tackon ElasticDreamsDir "Background/Small"))
  164.  
  165. (If (IN WAS 0)
  166.  (
  167.   (set CPU
  168.       (askchoice
  169.       (prompt CPUMsg)
  170.       (help   @askchoice-help)
  171.       (choices CPU1Msg CPU2Msg CPU3Msg CPU4Msg CPU5Msg)
  172.       (default 1)
  173.       )
  174.   )
  175.  
  176.   (set FPU
  177.       (askchoice
  178.       (prompt FPUMsg)
  179.       (help   @askchoice-help)
  180.       (choices FPU1Msg FPU2Msg)
  181.       (default 1)
  182.       )
  183.   )
  184.  
  185.   (if ( < (exists ElasticDreamsDir (noreq) ) 2)
  186.     (makedir ElasticDreamsDir
  187.         (prompt "Creating ElasticDreams directory...")
  188.         (help @makedir-help)
  189.         (infos)
  190.     )
  191.   )
  192.  
  193.   (complete 10)
  194.  
  195.   (if ( < (exists LoaderDir (noreq) ) 2)
  196.     (makedir LoaderDir
  197.         (prompt "Creating Loader directory...")
  198. ;        (help @makedir-help)
  199.     )
  200.   )
  201.  
  202.   (complete 11)
  203.  
  204.   (if ( < (exists ViewerDir (noreq) ) 2)
  205.     (makedir ViewerDir
  206.         (prompt "Creating Viewer directory...")
  207. ;        (help @makedir-help)
  208.     )
  209.   )
  210.  
  211.   (complete 12)
  212.  
  213.   (if ( < (exists BackgroundDir (noreq) ) 2)
  214.     (makedir BackgroundDir
  215.         (prompt "Creating Background directory...")
  216. ;        (help @makedir-help)
  217.     )
  218.   )
  219.  
  220.   (complete 13)
  221.  
  222.   (if ( < (exists BackgroundSmallDir (noreq) ) 2)
  223.     (makedir BackgroundSmallDir
  224.         (prompt "Creating BackgroundSmall directory...")
  225. ;        (help @makedir-help)
  226.     )
  227.   )
  228.  
  229.   (complete 14)
  230.  
  231.   (if ( < (exists SaverDir (noreq) ) 2)
  232.     (makedir SaverDir
  233.         (prompt "Creating Saver directory...")
  234. ;        (help @makedir-help)
  235.     )
  236.   )
  237.  
  238.   (complete 15)
  239.  
  240.   (if ( < (exists ToolsDir (noreq) ) 2)
  241.     (makedir ToolsDir
  242.         (prompt "Creating Tools directory...")
  243. ;        (help @makedir-help)
  244.     )
  245.   )
  246.  
  247.   (complete 16)
  248.  
  249.   (if ( < (exists OperatorDir (noreq) ) 2)
  250.     (makedir OperatorDir
  251.         (prompt "Creating Operator directory...")
  252. ;        (help @makedir-help)
  253.     )
  254.   )
  255.  
  256.   (complete 17)
  257.  
  258.   (if ( < (exists ImagesDir (noreq) ) 2)
  259.     (makedir ImagesDir
  260.         (prompt "Creating Images directory...")
  261. ;        (help @makedir-help)
  262.     )
  263.   )
  264.  
  265.   (complete 18)
  266.  
  267. (copyfiles
  268.     (prompt "Installing Font files...")
  269.     (help @copyfiles-help)
  270.     (source "Fonts/")
  271.     (dest "FONTS:")
  272.     (all)
  273.     (confirm)
  274. )
  275.  
  276.  
  277. (If (IN WAS 2)
  278.  (
  279.  
  280.   (complete 20)
  281.  
  282.   (if (= default_lang 4)
  283.   (
  284.       (copyfiles
  285.         (prompt "Copy ElasticDreams...")
  286.         (help @copyfiles-help)
  287.         (source "ElasticDreamsEnglish")
  288.         (dest ElasticDreamsDir)
  289.                 (newname "ElasticDreams")
  290.         (confirm)
  291.           )
  292.  
  293.   ))
  294.  
  295.   (if (= default_lang 2)
  296.    (
  297.       (copyfiles
  298.         (prompt "Kopiere ElasticDreams...")
  299.         (help @copyfiles-help)
  300.         (source "ElasticDreamsDeutsch")
  301.         (dest ElasticDreamsDir)
  302.                 (newname "ElasticDreams")
  303.         (confirm)
  304.           )
  305.    )
  306.   )
  307.  )
  308. )
  309.  
  310.  
  311.   (complete 26)
  312.  
  313.   (copyfiles
  314.     (prompt "Installing ElasticDreams Icon...")
  315.     (help @copyfiles-help)
  316.     (source "ElasticDreams.info")
  317.     (dest ElasticDreamsDir)
  318.     (confirm)
  319.   )
  320.  
  321.  
  322. (If (IN WAS 2)
  323.  (
  324.  
  325.   (complete 28)
  326.  
  327.   (if (= default_lang 4)
  328.   (
  329.  
  330.  
  331.  
  332.   (complete 30)
  333.  
  334.       (copyfiles
  335.         (prompt "Installing ElasticDreams SmallBackground...")
  336.         (help @copyfiles-help)
  337.         (source "Background English/Small/")
  338.         (dest BackgroundSmallDir)
  339.         (all)
  340.         (confirm)
  341.       )
  342.  
  343.   (complete 34)
  344.  
  345.       (copyfiles
  346.         (prompt "Installing Composer Background...")
  347.         (help @copyfiles-help)
  348.         (source "Background English/Compose Blank")
  349.         (dest BackgroundDir)
  350.         (newname "BGCompose")
  351.         (confirm)
  352.       )
  353.  
  354.   (complete 36)
  355.  
  356.       (copyfiles
  357.         (prompt "Installing Elastic Background...")
  358.         (help @copyfiles-help)
  359.         (source "Background English/Elastic Blank")
  360.         (dest BackgroundDir)
  361.         (newname "BGElastic")
  362.         (confirm)
  363.       )
  364.  
  365.   (complete 38)
  366.  
  367.       (copyfiles
  368.         (prompt "Installing Manager Background...")
  369.         (help @copyfiles-help)
  370.         (source "Background English/Background Manager")
  371.         (dest BackgroundDi